package com.hnx.admin.aurora.system.domain.param.post.form;

import com.hnx.admin.aurora.annotation.KeyField;
import com.hnx.admin.aurora.annotation.RepeatTable;
import com.hnx.admin.aurora.annotation.ValidField;
import com.hnx.admin.aurora.web.json.BaseForm;
import lombok.Data;
import org.springframework.data.annotation.Id;

import javax.validation.constraints.NotEmpty;

/*
创建人： 倔强的头发
创建时间：2025/7/3
功能描述:

*/
@Data
@RepeatTable("sys_post")
public class PostForm extends BaseForm {
    @Id
    @KeyField("post_id")
    private String postId;
    @NotEmpty(message = "岗位编码不能为空")
    @ValidField(msg = "岗位编码已经存在",column = "post_code")
    private String postCode;
    @NotEmpty(message = "岗位名称不能为空")
    @ValidField(msg = "岗位名称已经存在",column = "post_name")
    private String postName;
    private Integer postSort;
    private String status;
    private String remark;
}
